Component({
    properties: {
        show: {
            value: !1,
            type: Boolean
        },
        cardata: {
            value: [],
            type: Array
        }
    },
    options: {
        multipleSlots: !0
    },
    data: {
        timer: null
    },
    methods: {
        popupcartListbtn: function() {
            this.triggerEvent("popupcartListbtn", {
                clicktype: 0
            });
        },
        reduceCartNum: function(t) {
            var e = this, a = t.currentTarget.dataset.item;
            a.name = "minus", this.data.timer && clearTimeout(this.data.timer), this.data.timer = setTimeout(function() {
                e.triggerEvent("reduceCart", a);
            }, 200);
        },
        addCartNum: function(t) {
            var e = this, a = t.currentTarget.dataset.item;
            a.name = "plus", this.data.timer = setTimeout(function() {
                e.triggerEvent("addCart", a);
            }, 200);
        },
        updateCartNum: function(t) {
            var e = this, a = t.target.dataset.item;
            a.total = t.detail.value, "" != t.detail.value && 0 != t.detail.value || (a.total = 0), 
            a.name = "blur", this.data.timer = setTimeout(function() {
                e.triggerEvent("cartInputBlur", a);
            }, 500);
        }
    }
});